﻿@model Dal.Entities.Message
@{
    Layout = null;
    ViewBag.Nav = 7;
    int ti = 1;
}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>病例录入</title>
    @Html.Partial("meta")
</head>
<body id="b_main">
    @Html.Partial("header")
    <!--/end #header-->
    <div id="wrapper">
        <!--holds pretty much everything-->
        <!--/end #menu_main-->
        <div id="content">
            @Html.Partial("nav")
            @using (Html.BeginForm("add", "msg", FormMethod.Post, new { @class = "broom_form", id = "form1", style = "margin-left: 30px;" }))
            {
                if (ViewBag.Result != null)
                {
                    if (ViewBag.Result == true)
                    {
                <div class="notification confirm">
                    <em>
                        <img src="/assets/img/icons/tick_circle.png" alt="" />操作成功 </em>
                </div>
                    }
                }
                <br /> <br />
                <table cellspacing="0" summary="table" class="broom_table" width="90%">
                    <tbody>
                        <tr class="@(ti % 2 == 1 ? "odd" : "even")">
                            <td colspan="2">
                                给管理员留言
                            </td>
                        </tr>
                        <tr class="@(ti % 2 == 1 ? "odd" : "even")">
                            <td>
                                <span>留言内容</span> <span style="color: Red">*</span>
                            </td>
                            <td>
                                <div class="rili">
                                    @Html.TextAreaFor(i => i.MsgContent, 4, 40, null)
                                </div>
                            </td>
                        </tr>
                    </tbody>
                </table>
                <div class="button">
                    <div class="btn-inner">
                        <span><em>
                            <button type="submit" name="buttonsave">
                                <img src="/assets/img/icons/disk_black.png" alt="" />保存数据</button>
                        </em></span>
                    </div>
                </div>
            }
            <!--/end .tabber-->
        </div>
    </div>
    <div class="clear">
    <script type="text/javascript">
        $(document).ready(function () {
            $("#form1").validate({
                rules: {
                    MsgContent: "required"
                },
                messages: {
                    MsgContent: "留言内容不能为空"
                }
            });
        });
        </script>
    </div>
</body>
</html>
